package com.ruoyi.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.app.domain.SysUserShop;
import com.ruoyi.app.mapper.SysUserShopMapper;
import com.ruoyi.app.service.ISysUserShopService;
import com.ruoyi.common.utils.MybatisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户绑定店铺表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-21
 */
@Service
public class SysUserShopServiceImpl extends ServiceImpl<SysUserShopMapper, SysUserShop> implements ISysUserShopService
{
    @Autowired
    private SysUserShopMapper sysUserShopMapper;

    /**
     * 查询用户绑定店铺表
     * 
     * @param userId 用户绑定店铺表主键
     * @return 用户绑定店铺表
     */
    @Override
    public SysUserShop selectSysUserShopById(String userId)
    {
        return baseMapper.selectById(userId);
    }

    /**
     * 查询用户绑定店铺表列表
     * 
     * @param sysUserShop 用户绑定店铺表
     * @return 用户绑定店铺表
     */
    @Override
    public List<SysUserShop> selectSysUserShopList(SysUserShop sysUserShop)
    {
        return MybatisUtils.list(baseMapper, sysUserShop);
    }
}
